<script setup lang="ts">
//标签页面
import Combine from "@/components/home/right/combine.vue";
import Related from "@/components/block/home/related.vue";
import Waterfall from "@/components/block/waterfall.vue";
import { dataLocal } from "@/store/store.ts";

//搜索信息
const meat = dataLocal.tag.meat;
//搜索结果
const Content = dataLocal.tag.content;
//设备信息
const device = dataLocal.type.device;

const dataSum = {
  content: {
    ID: meat.id, //内容唯一ID
    url: meat.link, //唯一链接
    post_author: "string", //作者
    post_content: "", //内容
    post_date: "0", //时间
    post_excerpt: meat.description, //描述
    post_password: "", //密码
    post_status: "string",
    post_title: "标签名："+meat.name, //标题
    post_type: "string", //类型
  },
  meat: {
    site: "",
    switch: "false",
  },
};
</script>
<template>
  <Combine :data="dataSum">
    <template v-if="Content.length > 0">
      
      <Related :data="Content" :type="true" v-if="device === 'pc'" />
      <Waterfall :data="Content" v-else />
    </template>
    <div v-else>没有标签信息</div>
  </Combine>
</template>
